import { http } from '@/utils/http/axios';

//图片上传
export function upload(data) {
  return http.request({
    url: '/upload',
    method: 'post',
    data,
  });
}

/**
 * @description: 图片验证码
 */
export function captchaImg(params?) {
  return http.request({
    url: '/common/captcha',
    method: 'GET',
    params,
  });
}

/**
 * @description: 验证码配置
 */
export function captchaInit(params?) {
  return http.request({
    url: '/common/captcha/init',
    method: 'GET',
    params,
  });
}
